package com.oms.domain;

import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 6917669043736911519L;
	
	private Integer userId;
	private College college;
	private City city;
	private Short role;
	private String email;
	private String password;
	private Long schoolNo;
	private String moblie;
	private String schoolCornet;
	private String academy;
	private String major;
	private String class_;
	private String qqNo;
	private String wechatOpenid;
	private String qqOpenid;
	private String name;
	private Short sex;
	private Date birthday;
	private String trueName;
	private Integer creditValues;
	private Integer educationBackground;
	private String graduateInstitutions;
	private String address;
	private String addressOfSchool;
	private String headImageSrc;
	private Timestamp latestLogin;
	private Timestamp registeTime;
	private Short personalInfoOpenExtent;
	private Short accountState;
	private Timestamp accountStateDeadline;
	private String activeCode;
	private Boolean activeState;
	private Timestamp alterPasswordDeadline;
	private Timestamp userInfoLastUpdateTime;
	private Boolean deleteTag;
	private String expandBar1;
	private String expandBar2;
	private Set userActivities = new HashSet(0);
	private Set files = new HashSet(0);
	private Set complaintandsuggests = new HashSet(0);
	private Set communeMemberinfos = new HashSet(0);
	private Set acknowledgements = new HashSet(0);
	private Set massorganizations = new HashSet(0);
	private Set collections = new HashSet(0);
	private Set invitations = new HashSet(0);
	private Set organizationattentions = new HashSet(0);
	private Set schoolagentapplicationforms = new HashSet(0);
	private Set friendsForUserId = new HashSet(0);
	private Set friendsForFriendUserId = new HashSet(0);
	private Set messages = new HashSet(0);
	private Set encryptedquestioninfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(Short role, String headImageSrc, Timestamp latestLogin,
			Timestamp registeTime, Short personalInfoOpenExtent,
			Boolean activeState, Timestamp userInfoLastUpdateTime,
			Boolean deleteTag) {
		this.role = role;
		this.headImageSrc = headImageSrc;
		this.latestLogin = latestLogin;
		this.registeTime = registeTime;
		this.personalInfoOpenExtent = personalInfoOpenExtent;
		this.activeState = activeState;
		this.userInfoLastUpdateTime = userInfoLastUpdateTime;
		this.deleteTag = deleteTag;
	}

	/** full constructor */
	public User(College college, City city, Short role, String email,
			String password, Long schoolNo, String moblie, String schoolCornet,
			String academy, String major, String class_, String qqNo,
			String wechatOpenid, String qqOpenid, String name, Short sex,
			Date birthday, String trueName, Integer creditValues,
			Integer educationBackground, String graduateInstitutions,
			String address, String addressOfSchool, String headImageSrc,
			Timestamp latestLogin, Timestamp registeTime,
			Short personalInfoOpenExtent, Short accountState,
			Timestamp accountStateDeadline, String activeCode,
			Boolean activeState, Timestamp alterPasswordDeadline,
			Timestamp userInfoLastUpdateTime, Boolean deleteTag,
			String expandBar1, String expandBar2, Set userActivities,
			Set files, Set complaintandsuggests, Set communeMemberinfos,
			Set acknowledgements, Set massorganizations, Set collections,
			Set invitations, Set organizationattentions,
			Set schoolagentapplicationforms, Set friendsForUserId,
			Set friendsForFriendUserId, Set messages, Set encryptedquestioninfos) {
		this.college = college;
		this.city = city;
		this.role = role;
		this.email = email;
		this.password = password;
		this.schoolNo = schoolNo;
		this.moblie = moblie;
		this.schoolCornet = schoolCornet;
		this.academy = academy;
		this.major = major;
		this.class_ = class_;
		this.qqNo = qqNo;
		this.wechatOpenid = wechatOpenid;
		this.qqOpenid = qqOpenid;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.trueName = trueName;
		this.creditValues = creditValues;
		this.educationBackground = educationBackground;
		this.graduateInstitutions = graduateInstitutions;
		this.address = address;
		this.addressOfSchool = addressOfSchool;
		this.headImageSrc = headImageSrc;
		this.latestLogin = latestLogin;
		this.registeTime = registeTime;
		this.personalInfoOpenExtent = personalInfoOpenExtent;
		this.accountState = accountState;
		this.accountStateDeadline = accountStateDeadline;
		this.activeCode = activeCode;
		this.activeState = activeState;
		this.alterPasswordDeadline = alterPasswordDeadline;
		this.userInfoLastUpdateTime = userInfoLastUpdateTime;
		this.deleteTag = deleteTag;
		this.expandBar1 = expandBar1;
		this.expandBar2 = expandBar2;
		this.userActivities = userActivities;
		this.files = files;
		this.complaintandsuggests = complaintandsuggests;
		this.communeMemberinfos = communeMemberinfos;
		this.acknowledgements = acknowledgements;
		this.massorganizations = massorganizations;
		this.collections = collections;
		this.invitations = invitations;
		this.organizationattentions = organizationattentions;
		this.schoolagentapplicationforms = schoolagentapplicationforms;
		this.friendsForUserId = friendsForUserId;
		this.friendsForFriendUserId = friendsForFriendUserId;
		this.messages = messages;
		this.encryptedquestioninfos = encryptedquestioninfos;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public College getCollege() {
		return this.college;
	}

	public void setCollege(College college) {
		this.college = college;
	}

	public City getCity() {
		return this.city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public Short getRole() {
		return this.role;
	}

	public void setRole(Short role) {
		this.role = role;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Long getSchoolNo() {
		return this.schoolNo;
	}

	public void setSchoolNo(Long schoolNo) {
		this.schoolNo = schoolNo;
	}

	public String getMoblie() {
		return this.moblie;
	}

	public void setMoblie(String moblie) {
		this.moblie = moblie;
	}

	public String getSchoolCornet() {
		return this.schoolCornet;
	}

	public void setSchoolCornet(String schoolCornet) {
		this.schoolCornet = schoolCornet;
	}

	public String getAcademy() {
		return this.academy;
	}

	public void setAcademy(String academy) {
		this.academy = academy;
	}

	public String getMajor() {
		return this.major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getClass_() {
		return this.class_;
	}

	public void setClass_(String class_) {
		this.class_ = class_;
	}

	public String getQqNo() {
		return this.qqNo;
	}

	public void setQqNo(String qqNo) {
		this.qqNo = qqNo;
	}

	public String getWechatOpenid() {
		return this.wechatOpenid;
	}

	public void setWechatOpenid(String wechatOpenid) {
		this.wechatOpenid = wechatOpenid;
	}

	public String getQqOpenid() {
		return this.qqOpenid;
	}

	public void setQqOpenid(String qqOpenid) {
		this.qqOpenid = qqOpenid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Short getSex() {
		return this.sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public Integer getCreditValues() {
		return this.creditValues;
	}

	public void setCreditValues(Integer creditValues) {
		this.creditValues = creditValues;
	}

	public Integer getEducationBackground() {
		return this.educationBackground;
	}

	public void setEducationBackground(Integer educationBackground) {
		this.educationBackground = educationBackground;
	}

	public String getGraduateInstitutions() {
		return this.graduateInstitutions;
	}

	public void setGraduateInstitutions(String graduateInstitutions) {
		this.graduateInstitutions = graduateInstitutions;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddressOfSchool() {
		return this.addressOfSchool;
	}

	public void setAddressOfSchool(String addressOfSchool) {
		this.addressOfSchool = addressOfSchool;
	}

	public String getHeadImageSrc() {
		return this.headImageSrc;
	}

	public void setHeadImageSrc(String headImageSrc) {
		this.headImageSrc = headImageSrc;
	}

	public Timestamp getLatestLogin() {
		return this.latestLogin;
	}

	public void setLatestLogin(Timestamp latestLogin) {
		this.latestLogin = latestLogin;
	}

	public Timestamp getRegisteTime() {
		return this.registeTime;
	}

	public void setRegisteTime(Timestamp registeTime) {
		this.registeTime = registeTime;
	}

	public Short getPersonalInfoOpenExtent() {
		return this.personalInfoOpenExtent;
	}

	public void setPersonalInfoOpenExtent(Short personalInfoOpenExtent) {
		this.personalInfoOpenExtent = personalInfoOpenExtent;
	}

	public Short getAccountState() {
		return this.accountState;
	}

	public void setAccountState(Short accountState) {
		this.accountState = accountState;
	}

	public Timestamp getAccountStateDeadline() {
		return this.accountStateDeadline;
	}

	public void setAccountStateDeadline(Timestamp accountStateDeadline) {
		this.accountStateDeadline = accountStateDeadline;
	}

	public String getActiveCode() {
		return this.activeCode;
	}

	public void setActiveCode(String activeCode) {
		this.activeCode = activeCode;
	}

	public Boolean getActiveState() {
		return this.activeState;
	}

	public void setActiveState(Boolean activeState) {
		this.activeState = activeState;
	}

	public Timestamp getAlterPasswordDeadline() {
		return this.alterPasswordDeadline;
	}

	public void setAlterPasswordDeadline(Timestamp alterPasswordDeadline) {
		this.alterPasswordDeadline = alterPasswordDeadline;
	}

	public Timestamp getUserInfoLastUpdateTime() {
		return this.userInfoLastUpdateTime;
	}

	public void setUserInfoLastUpdateTime(Timestamp userInfoLastUpdateTime) {
		this.userInfoLastUpdateTime = userInfoLastUpdateTime;
	}

	public Boolean getDeleteTag() {
		return this.deleteTag;
	}

	public void setDeleteTag(Boolean deleteTag) {
		this.deleteTag = deleteTag;
	}

	public String getExpandBar1() {
		return this.expandBar1;
	}

	public void setExpandBar1(String expandBar1) {
		this.expandBar1 = expandBar1;
	}

	public String getExpandBar2() {
		return this.expandBar2;
	}

	public void setExpandBar2(String expandBar2) {
		this.expandBar2 = expandBar2;
	}

	public Set getUserActivities() {
		return this.userActivities;
	}

	public void setUserActivities(Set userActivities) {
		this.userActivities = userActivities;
	}

	public Set getFiles() {
		return this.files;
	}

	public void setFiles(Set files) {
		this.files = files;
	}

	public Set getComplaintandsuggests() {
		return this.complaintandsuggests;
	}

	public void setComplaintandsuggests(Set complaintandsuggests) {
		this.complaintandsuggests = complaintandsuggests;
	}

	public Set getCommuneMemberinfos() {
		return this.communeMemberinfos;
	}

	public void setCommuneMemberinfos(Set communeMemberinfos) {
		this.communeMemberinfos = communeMemberinfos;
	}

	public Set getAcknowledgements() {
		return this.acknowledgements;
	}

	public void setAcknowledgements(Set acknowledgements) {
		this.acknowledgements = acknowledgements;
	}

	public Set getMassorganizations() {
		return this.massorganizations;
	}

	public void setMassorganizations(Set massorganizations) {
		this.massorganizations = massorganizations;
	}

	public Set getCollections() {
		return this.collections;
	}

	public void setCollections(Set collections) {
		this.collections = collections;
	}

	public Set getInvitations() {
		return this.invitations;
	}

	public void setInvitations(Set invitations) {
		this.invitations = invitations;
	}

	public Set getOrganizationattentions() {
		return this.organizationattentions;
	}

	public void setOrganizationattentions(Set organizationattentions) {
		this.organizationattentions = organizationattentions;
	}

	public Set getSchoolagentapplicationforms() {
		return this.schoolagentapplicationforms;
	}

	public void setSchoolagentapplicationforms(Set schoolagentapplicationforms) {
		this.schoolagentapplicationforms = schoolagentapplicationforms;
	}

	public Set getFriendsForUserId() {
		return this.friendsForUserId;
	}

	public void setFriendsForUserId(Set friendsForUserId) {
		this.friendsForUserId = friendsForUserId;
	}

	public Set getFriendsForFriendUserId() {
		return this.friendsForFriendUserId;
	}

	public void setFriendsForFriendUserId(Set friendsForFriendUserId) {
		this.friendsForFriendUserId = friendsForFriendUserId;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

	public Set getEncryptedquestioninfos() {
		return this.encryptedquestioninfos;
	}

	public void setEncryptedquestioninfos(Set encryptedquestioninfos) {
		this.encryptedquestioninfos = encryptedquestioninfos;
	}

}